import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import mutations from './mutations'
import actions from './actions'

Vue.use(Vuex)

const state = {
  loginStatus: 0,
  wxSign: '',
  // body 可视高度
  clientHeight: 667,
  // 首页期刊列表
  journalList: [],
  // 期刊类型
  journalType: 0,
  // 期刊数列表
  periodsList: [],
  searchKeyWord: '',
  periodsKeyWord: '',
  // 期刊id
  periodsId: 0,
  isShowTabbar: true
}

export default new Vuex.Store({
  strict: process.env.NODE_ENV !== 'production',
  state,
  getters,
  mutations,
  actions
})
